Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return "calculated" checksum if requested w/caching #234

Merged

Conversation

malmond77
Copy link
Contributor

If a file is downloaded via librepo (e.g. dnf install --downloadonly)
then a request to get the checksum via lr_checksum_fd_compare() will
not work. It'll only return whether the checksum is valid, and not the
actual checksum. This is the simple fix.

Addresses #233

librepo/checksum.c Outdated Show resolved Hide resolved
tests/test_checksum.c Outdated Show resolved Hide resolved
@m-blaha
Copy link
Member

m-blaha commented Mar 17, 2021

Please, can you also bump the Version: field in librepo.spec to be in sync with VERSION.cmake? We are using this spec file to build our nightlies.
Other then this the PR is ready to be merged. Thanks for your work!

If a file is downloaded via librepo (e.g. `dnf install --downloadonly`)
then a request to get the checksum via `lr_checksum_fd_compare()` will
not work. It'll only return whether the checksum is valid, and not the
actual checksum. This is the simple fix.

Addresses rpm-software-management#233
@m-blaha
Copy link
Member

m-blaha commented Mar 17, 2021

Thanks! I'll wait for tests to finish and merge it.

@m-blaha m-blaha merged commit ddee517 into rpm-software-management:master Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants